#!/usr/bin/env bash

# 分词， 去除停用词
python3.6 text_seg.py $1 chinese_stopwords.txt $1.seg
# 提取TFIDF特征
python3.6 feature_extract.py $1.seg $1_CV.pkl $1_TFIDF.pkl $1_data.pkl
# 训练
python3.6 train_lg.py $1_data.pkl $1_LG.pkl
# 测试单个文本
python3.6 eval.py $1_CV.pkl $1_TFIDF.pkl $1_LG.pkl